package br.com.faculdadeevolucao.controlebiblioteca.modelo;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {
	
	public ConnectionFactory(){
		
	}
	public Connection getConnection() {
		try {
			Connection conexao = DriverManager.getConnection(
					"jdbc:mysql://localhost:3309/livrariaacademica","root","123456");
			return conexao;
		} catch (SQLException e) {
			throw new RuntimeException(e);
		}
	}
}